<?php
class mlookupv2 extends CI_Model
{
	function update_gps_int($id = "")
	{
		$dblokal = $this->load->database("default", true);
        //$lookup_key = $key;
		
        $lookup_value = $this->input->post("lookup_value");
        $userid = $this->session->userdata('username');
        $data = array(  "lookup_value" => $lookup_value,
                        "created_by" => $this->session->userdata('username'), 
                        "updated_by" => $this->session->userdata('username'),
                        "created_on" => date("Y-m-d H:i:s"));

		$dblokal->where(array("lookup_id" => $id));
        $dblokal->update("t_mtr_lookup", $data);  	
	}
	
}

?>